select values from mysql using php array of ids

124

select values from mysql using php array of ids -

$sql = 'SELECT * 
          FROM `table` 
         WHERE `id` IN (' . implode(',', array_map('intval', $array)) . ')';

Comments

Submit
0 Comments